//
//  SingleDetailsSmallCollectionViewCell.m
//  项目A --半糖
//
//  Created by romana on 16/5/26.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "SingleDetailsSmallCollectionViewCell.h"

@implementation SingleDetailsSmallCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        [self doSomething];
    }
    return self;
}

-(void)doSomething{

    self.myLabel = [[UILabel alloc] init];
    self.myLabel.backgroundColor = [UIColor colorWithRed:244.0 / 255.0 green:244.0 / 255.0 blue:244.0 / 255.0 alpha:1.0];
    self.myLabel.font = [UIFont systemFontOfSize:15];
    self.myLabel.layer.masksToBounds = YES;
    self.myLabel.layer.cornerRadius = 20;
    self.myLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.myLabel];


}

-(void)layoutSubviews{

    self.myLabel.frame = self.bounds;


}

-(void)setSDVCModel:(SingleDetailsVCSecondModel *)SDVCModel{

    _SDVCModel = SDVCModel;
    self.myLabel.text = _SDVCModel.name;


}


@end
